package com.hero.basicsystem.dao.ibatis;

import com.hero.basicsystem.dao.IEnterprisedictionaryDAO;
import com.hero.basicsystem.entity.Enterprisedictionary;
import com.hero.basicsystem.entity.EnterprisedictionaryExample;
import com.hero.basicsystem.entity.EnterprisedictionaryKey;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class EnterprisedictionaryDAOImpl extends IbatisBaseDao<Enterprisedictionary, EnterprisedictionaryExample> implements IEnterprisedictionaryDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public EnterprisedictionaryDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int countByExample(EnterprisedictionaryExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("enterprisedictionary.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByExample(EnterprisedictionaryExample example) {
        int rows = getSqlMapClientTemplate().delete("enterprisedictionary.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByPrimaryKey(EnterprisedictionaryKey key) {
        int rows = getSqlMapClientTemplate().delete("enterprisedictionary.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insert(Enterprisedictionary record) {
        getSqlMapClientTemplate().insert("enterprisedictionary.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insertSelective(Enterprisedictionary record) {
        getSqlMapClientTemplate().insert("enterprisedictionary.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<Enterprisedictionary> selectByExample(EnterprisedictionaryExample example) {
        List<Enterprisedictionary> list = getSqlMapClientTemplate().queryForList("enterprisedictionary.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public Enterprisedictionary selectByPrimaryKey(EnterprisedictionaryKey key) {
        Enterprisedictionary record = (Enterprisedictionary) getSqlMapClientTemplate().queryForObject("enterprisedictionary.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExampleSelective(Enterprisedictionary record, EnterprisedictionaryExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisedictionary.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExample(Enterprisedictionary record, EnterprisedictionaryExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisedictionary.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKeySelective(Enterprisedictionary record) {
        int rows = getSqlMapClientTemplate().update("enterprisedictionary.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKey(Enterprisedictionary record) {
        int rows = getSqlMapClientTemplate().update("enterprisedictionary.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table enterprisedictionary11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    private static class UpdateByExampleParms extends EnterprisedictionaryExample {
        private Object record;

        public UpdateByExampleParms(Object record, EnterprisedictionaryExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}